package samsung.sds.survey.surveyManagement.service;

import java.util.List;

import samsung.sds.survey.surveyManagement.model.OptionEntity;
import samsung.sds.survey.surveyManagement.model.QuestionEntity;
import samsung.sds.survey.surveyManagement.model.QuestionModel;
import samsung.sds.survey.surveyManagement.model.SurveyEntity;
import samsung.sds.system.common.baseQuery.BaseServiceInterface;
/**
 * @author sp.deng
 * @createDate 2016-2-18
 * 
 * 问题编辑操作业务接口
 */
public interface SurveyDesignService extends BaseServiceInterface<SurveyEntity> {
	
	/**
	 * 查询问题及选项
	 * @param survey_Id 问卷id
	 * @return 问题的集合
	 */
	public List<QuestionEntity> getQuestionEntity(String surveyId);
	
	/**
	 * 删除问题的选项
	 * @param id 问题id
	 * @return
	 */
	public int deleteOption(String id);
	
	/**
	 * 插入问题 
	 * @param questionEntity 问题实体
	 * @return
	 */
	public int insertQuestion(QuestionEntity questionEntity);
	
	/**
	 * 插入问题的选项
	 * @param optionEntity 选项实体
	 * @return
	 */
	public int insertOption(OptionEntity optionEntity);
	
	/**
	 * 问题编辑
	 * @param surveyEntity 问卷实体
	 * @param qlist 问题及选项的集合
	 * @return
	 */
	public boolean saveQuestion(SurveyEntity surveyEntity,QuestionModel qlist);
}
